package characters;

public class CharacterFactory {
    public static Fighter createCharacter(String name, int x, int y) {
        switch (name) {
            case "草薙京":
                return new Kyo(x, y);
            case "八神庵":
                return new Iori(x, y);
            //TODO 添加更多角色...
            default:
                return new Kyo(x, y); // 默认返回草薙京
        }
    }
}
/*
package characters;

public class CharacterFactory {
    public static Fighter createCharacter(String name, int x, int y) {
        switch (name) {
            case "草薙京":
                return new Kyo(x, y);
            case "八神庵":
                return new Iori(x, y);
            case "不知火舞":
                return new Mai(x, y);
            case "大门五郎":
                return new Daimon(x, y);
            case "二阶堂红丸":
                return new Benimaru(x, y);
            default:
                return new Kyo(x, y); // 默认角色
        }
    }
}
 */